-
-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support placeholders in patches #114
Conversation
Your free trial has expired. To keep using Ellipsis, sign up at https://app.ellipsis.dev for $20/seat/month or reach us at [email protected] |
❌ 1 Tests Failed:
View the top 1 failed tests by shortest run time
To view individual test run time comparison to the main branch, go to the Test Analytics Dashboard |
gptme/tools/patch.py
Outdated
@@ -84,9 +84,29 @@ def apply(codeblock: str, content: str) -> str: | |||
|
|||
# TODO: maybe allow modified chunk to contain "// ..." to refer to chunks in the original, | |||
# and then replace these with the original chunks? | |||
re_placeholder = re.compile(r"^[ \t]*# \.\.\. ?.*$", re.MULTILINE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another note to add here: this essentially breaks the ability to edit code containing such comments.
For some reason Claude suddenly decided to spit out tons of placeholders in patches. This should let us parse them.